Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileDrop event added #300

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

karamellpelle
Copy link

Dragging and dropping files or folders triggers a FileDrop SystemEvent for each item. Currently using FilePath instead of the newer OsPath because current LTS does not use the newest filepath package (in GHC 9.6.2).

Implemented from SDL's native event SDL.DropEvent. Tested and works on macOS. The event handler fileDropEvent prints FilePath to stdout, this should be removed and instead show this feature using an example program.

The FileDrop event is handy. You can for example send a file over internet, render an image or zip a folder by just dragging the item(s) into your Monomer window.

Dragging and dropping files or folders triggers a FileDrop SystemEvent for
each item. Currently using FilePath instead of the newer OsPath because
current LTS does not include newest filepath package (in GHC 9.6.2).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant